import {Style} from "./Style";
import {Color} from "three";

export class FillStyle implements Style {
    //填充颜色
    public fillColor: Color;
    //透明度
    public fillOpacity = 1.0;
    //边框色
    public fillOutlineColor: Color;
    //边框线宽度
    public fillOutlineWidth = 1.0;

    constructor() {
        this.fillColor = new Color('green').convertLinearToGamma();
        this.fillOutlineColor = new Color('white').convertLinearToGamma();
    }
}

export interface FillStyleConfig {
    //填充颜色
    fillColor: string | number;
    //透明度
    fillOpacity: number;
    //边框色
    fillOutlineColor: string | number;
    //边框线宽度
    fillOutlineWidth: number;
}
